export default {
  labelWidth: "100px",
  fields: [
    { label: "用户名", field: "username", type: "input", required: true },
    { label: "性别", field: "gender", type: "select", options: ["男", "女"] },
    {
      label: "邮箱",
      field: "email",
      type: "input",
      validateType: "email",
      required: true,
    },
    {
      label: "兴趣",
      field: "hobby",
      type: "multiselect",
      options: ["音乐", "编程", "篮球"],
    },
    { label: "评分", field: "rate", type: "rate" },
    { label: "生日", field: "birthday", type: "date" },
    {
      label: "教育经历",
      field: "education",
      type: "nested",
      children: [
        { label: "学校", field: "school", type: "input" },
        { label: "入学年份", field: "year", type: "input" },
      ],
    },
    {
      label: "服兵役情况",
      field: "military",
      type: "input",
      visibleWhen: { field: "gender", value: "男" },
    },
  ],
};
